package main

//生成指数表、对数表用于快速计算乘法
func GenerateMulTab_8(unit uint8) (exp []uint8, log []uint8) {
	exp = make([]uint8, 256)
	log = make([]uint8, 256)
	temp := uint8(1)
	for i := 1; i < 256; i++ {
		temp = GFmul_8(temp, unit)
		exp[i] = temp
		log[int(temp)] = uint8(i)
	}
	return
}
